package xuegao.study.mall.web.domain;

import lombok.Data;
import xuegao.study.mall.common.domain.portal.SmsCouponHistoryDetail;
import xuegao.study.mall.common.model.ums.UmsIntegrationConsumeSetting;
import xuegao.study.mall.common.model.ums.UmsMemberReceiveAddress;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ConfirmOrderResult {
    /**
     * 包含优惠卷信息的购物车信息
     */
    private List<CartPromotionItem> cartPromotionItemList;
    /**
     * 用户收货地址列表
     */
    private List<UmsMemberReceiveAddress> memberReceiveAddressList;
    /**
     * 用户可用优惠卷列表
     */
    private List<SmsCouponHistoryDetail> couponHistoryDetailList;
    /**
     * 积分使用规则
     */
    private UmsIntegrationConsumeSetting integrationConsumeSetting;
    /**
     * 会员持有的积分
     */
    private Integer memberIntegration;
    /**
     * 计算的金额
     */
    private CalcAmount calcAmount;

    @Data
    public static class CalcAmount {
        /**
         * 订单商品总金额
         */
        private BigDecimal totalAmount;
        /**
         * 运费
         */
        private BigDecimal freightAmount;
        /**
         * 活动优惠
         */
        private BigDecimal promotionAmount;
        /**
         * 应付金额
         */
        private BigDecimal payAmount;
    }
}
